package state;

import particle.core.tools.KeyCodes;

public class Key extends KeyCodes {
  public static final int UP = KeyCodes.Up;
  public static final int DOWN = KeyCodes.Down;
  public static final int RIGHT = KeyCodes.Right;
  public static final int LEFT = KeyCodes.Left;
  public static final int K_0 = KeyCodes.Digit0;
  public static final int K_1 = KeyCodes.Digit1;
  public static final int K_2 = KeyCodes.Digit2;
  public static final int K_3 = KeyCodes.Digit3;
  public static final int K_4 = KeyCodes.Digit4;
  public static final int K_5 = KeyCodes.Digit5;
  public static final int K_6 = KeyCodes.Digit6;
  public static final int K_7 = KeyCodes.Digit7;
  public static final int K_8 = KeyCodes.Digit8;
  public static final int K_9 = KeyCodes.Digit9;
  public static final int HOME = KeyCodes.Home;
  public static final int END = KeyCodes.End;
  public static final int CTRL = KeyCodes.Ctrl;
  public static final int BACKSPACE = KeyCodes.Backspace;
  public static final int ENTER = KeyCodes.Enter;
  public static final int SHIFT = KeyCodes.Shift;
  public static final int FIRE = KeyCodes.Enter;
  public static final int SOFT_RIGHT = KeyCodes.End;
  public static final int SOFT_LEFT = KeyCodes.Home;
  public static final int POUND = KeyCodes.PageUp;
  public static final int STAR = KeyCodes.PageDown;

  public static boolean isCommandKey = false;

  public static int modifiers = 0;

  public static void checkGameKey(int keyCode) {
    isCommandKey = false;
    switch (keyCode) {
    case UP:
    case DOWN:
    case RIGHT:
    case LEFT:
    case ENTER:
    case BACKSPACE:
    case SHIFT:
    case HOME:
    case END:
    case CTRL:
      isCommandKey = true;
      break;
    }
  }
}
